# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        博智科技  
# Name:         demo143
# Description:
# Author:       yzl
# Date:         2019-02-10
#-------------------------------------------------------------------------------

import json
import dicttoxml

f = open('files/products.json','r',encoding='utf-8')
jsonstr = f.read()
f.close()
d = json.loads(jsonstr)
print(d)

xmlstr = dicttoxml.dicttoxml(d).decode('utf-8')
print(xmlstr)


